/**
 * 
 */
package com.junhai.tamsys.util;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

/**
 * @author Administrator
 *
 */
public class UrlParser {
	
	public String parse(String s) {
		if(s == null) {
			return "";
		}
		String ret = s;
		try {
			ret = URLEncoder.encode(s, "UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return ret;
	}
	
}
